package com.cms.config;

/**
 * <p>Title: ECCM</p>
 *
 * <p>Description: Enterprise Collaboration, Customer, and Resources
 * Management</p>
 *
 * <p>Copyright: Copyright (c) 2006</p>
 *
 * <p>Company: eConage Software</p>
 *
 * @author not attributable
 * @version 1.0
 */
import java.util.*;

public class LocaleDef {
  private static HashMap localeMap = null;

  private LocaleDef() {}

  public static Locale getLocale(String language) {
    if (localeMap == null) {
      localeMap = new HashMap();
      localeMap.put("en",Locale.US);
      localeMap.put("cn",Locale.SIMPLIFIED_CHINESE);
      localeMap.put("tw",Locale.TRADITIONAL_CHINESE);
      localeMap.put("jp",Locale.JAPANESE);
      localeMap.put("fr",Locale.FRENCH);
      localeMap.put("de",Locale.GERMAN);
    }
    Locale loc = Locale.SIMPLIFIED_CHINESE;
//    Object obj = localeMap.get(language);
//    if (obj != null)
//     loc = (Locale)obj;

     return loc;
 }

}
